package cn.wei.sdd.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
//@ToString
public enum HandleStatusEnum {

//    回收员处理订单状态（-1：待回收，0：待打包，1：待验收， 2：完成）
    WAIT_ORDER(-1, "待回收"),
    WAIT_PACK(0, "待打包"),
    PACK_CHECK(1, "待验收"),
    FINISH_ORDER(2, "完成"),
    ;

    private Integer status;
    private String msg;

    public static String getMsgByStatus(int status) {
        HandleStatusEnum arrObj[] = HandleStatusEnum.values();
        for (HandleStatusEnum obj : arrObj) {
            if (status == obj.getStatus().intValue()) {
                return obj.getMsg();
            }
        }
        return "";
    }
}

